""" 2_2 GPIO输入：电容按键 """
# https://learn.adafruit.com/adafruit-esp32-s3-tft-feather/capacitive-touch

import board

# 电容触摸按键
import time
import board
import touchio

T14 = touchio.TouchIn(board.A4)
T10 = touchio.TouchIn(board.D10)

while True:
    if T14.value:
        print("Pin A4 touched!")
    if T10.value:
        print("Pin D10 touched!")
    time.sleep(0.1)
